<?php

declare(strict_types=1);
/**
 * This file is part of habo_new_media.
 *
 * @link     https://www.berlen.cn/
 * @contact  tech@berlen.cn
 * @license  http://gitlab.rehou.cn/habo/habo_new_media/-/blob/master/README.md
 */
namespace app\model;

use think\Model;

class OeAudiencePackageModel extends Model
{
    protected $name = 'oe_audience_package';

    protected $json = ['geolocation', 'bind_info', 'device_brand', 'retargeting_tags', 'retargeting_tags_exclude', 'age',
        'carrier', 'ac', 'article_category', 'platform', 'launch_price', 'action_scene', 'action_categories',
        'action_words', 'interest_categories', 'interest_words', 'business_ids', 'city', 'flow_package', 'exclude_flow_package',
        'device_type', 'auto_extend_targets', 'aweme_fans_numbers', 'aweme_fan_accounts', 'aweme_fan_categories', 'aweme_fan_behaviors'];

    /**
     * 定向包有效字段.
     * @var array|string[]
     */
    private array $audiencePackageField = [
        'district',
        'region_version',
        'city',
        'location_type',
        'gender',
        'age',
        'retargeting_tags',
        'retargeting_tags_exclude',
        'platform',
        'hide_if_exists',
        'android_osv',
        'article_category',
        'carrier',
        'activate_type',
        'device_brand',
        'launch_price',
        'landing_type',
        'ac',
        'ios_osv',
        'interest_action_mode',
        'delivery_range',
        'auto_extend_enabled',
        'auto_extend_targets',
        'action_scene',
        'action_days',
        'action_categories',
        'action_words',
        'interest_categories',
        'interest_words',
        'aweme_fan_behaviors',
        'aweme_fan_categories',
        'aweme_fan_accounts',
        'aweme_fans_numbers',
        'aweme_fan_time_scope',
        'filter_aweme_abnormal_active',
        'filter_aweme_fans_count',
        'filter_own_aweme_fans',
        'superior_popularity_type',
        'flow_package',
        'exclude_flow_package',
        'device_type',
        'hide_if_converted',
        'converted_time_duration',
        'geolocation',
    ];

    /**
     * 获取定向包有效字段.
     * @return array|string[]
     */
    public function getAudiencePackageField(): array
    {
        return $this->audiencePackageField;
    }
}
